<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>个人中心 - 邦伴用户端</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
  <style>
    :root {
      --primary: #ff7e2d;
      --primary-light: #fff3ea;
      --border: #f0f0f0;
      --text-main: #222;
      --text-sub: #888;
    }
    
    body {
      font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
      background-color: #f8f8f8;
      color: var(--text-main);
    }
    
    .app-container {
      max-width: 480px;
      margin: 0 auto;
      background: #fff;
      min-height: 100vh;
      position: relative;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    }
    
    .primary-color {
      color: var(--primary);
    }
    
    .primary-bg {
      background-color: var(--primary);
    }
    
    .primary-light-bg {
      background-color: var(--primary-light);
    }
    
    .bottom-nav {
      border-top: 1px solid var(--border);
    }
    
    .tab-active {
      color: var(--primary);
    }
    
    .menu-card {
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    
    .menu-item {
      border-bottom: 1px solid var(--border);
    }
    
    .menu-item:last-child {
      border-bottom: none;
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 顶部导航栏 -->
    <div class="sticky top-0 z-10 bg-white border-b border-gray-100 px-4 py-3 flex items-center">
      <h1 class="text-lg font-medium flex-1 text-center">个人中心</h1>
      <a href="settings.html" class="ml-2">
        <i class="fas fa-cog text-lg"></i>
      </a>
    </div>
    
    <!-- 用户信息 -->
    <div class="primary-light-bg px-4 py-5">
      <div class="flex items-center">
        <div class="w-16 h-16 rounded-full bg-white flex items-center justify-center text-2xl primary-color mr-4">
          <i class="fas fa-user"></i>
        </div>
        <div class="flex-1">
          <h2 class="text-lg font-bold">张三</h2>
          <p class="text-sm text-gray-600 mt-1">普通会员 | 积分: 210</p>
        </div>
        <a href="profile_edit.html" class="flex items-center text-sm primary-color">
          编辑 <i class="fas fa-chevron-right ml-1 text-xs"></i>
        </a>
      </div>
    </div>
    
    <!-- 订单管理 -->
    <div class="px-4 py-5">
      <h3 class="font-bold mb-4">订单管理</h3>
      <div class="grid grid-cols-4 text-center">
        <a href="orders.html" class="flex flex-col items-center">
          <div class="w-12 h-12 rounded-full primary-light-bg flex items-center justify-center mb-2">
            <i class="fas fa-clipboard-list primary-color"></i>
          </div>
          <span class="text-sm">全部订单</span>
        </a>
        <a href="orders.html?status=unpaid" class="flex flex-col items-center">
          <div class="w-12 h-12 rounded-full primary-light-bg flex items-center justify-center mb-2">
            <i class="fas fa-credit-card primary-color"></i>
          </div>
          <span class="text-sm">待付款</span>
        </a>
        <a href="orders.html?status=ongoing" class="flex flex-col items-center">
          <div class="w-12 h-12 rounded-full primary-light-bg flex items-center justify-center mb-2">
            <i class="fas fa-hourglass-half primary-color"></i>
          </div>
          <span class="text-sm">服务中</span>
        </a>
        <a href="orders.html?status=review" class="flex flex-col items-center">
          <div class="w-12 h-12 rounded-full primary-light-bg flex items-center justify-center mb-2">
            <i class="fas fa-star primary-color"></i>
          </div>
          <span class="text-sm">待评价</span>
        </a>
      </div>
    </div>
    
    <!-- 我的服务 -->
    <div class="px-4 py-5">
      <h3 class="font-bold mb-4">我的服务</h3>
      <div class="menu-card bg-white overflow-hidden">
        <a href="care_recipients.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-user-friends text-xl primary-color mr-3"></i>
            <span>被照护人管理</span>
          </div>
          <i class="fas fa-chevron-right text-gray-400"></i>
        </a>
        <a href="address_manage.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-map-marker-alt text-xl primary-color mr-3"></i>
            <span>地址管理</span>
          </div>
          <i class="fas fa-chevron-right text-gray-400"></i>
        </a>
        <a href="coupons.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-ticket-alt text-xl primary-color mr-3"></i>
            <span>我的优惠券</span>
          </div>
          <div class="flex items-center">
            <span class="text-sm text-gray-500 mr-2">3张可用</span>
            <i class="fas fa-chevron-right text-gray-400"></i>
          </div>
        </a>
        <a href="invoice.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-file-invoice text-xl primary-color mr-3"></i>
            <span>申请发票</span>
          </div>
          <i class="fas fa-chevron-right text-gray-400"></i>
        </a>
        <a href="favorites.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-heart text-xl primary-color mr-3"></i>
            <span>我的收藏</span>
          </div>
          <i class="fas fa-chevron-right text-gray-400"></i>
        </a>
      </div>
    </div>
    
    <!-- 更多服务 -->
    <div class="px-4 py-5">
      <h3 class="font-bold mb-4">更多服务</h3>
      <div class="menu-card bg-white overflow-hidden">
        <a href="customer_service.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-headset text-xl primary-color mr-3"></i>
            <span>在线客服</span>
          </div>
          <i class="fas fa-chevron-right text-gray-400"></i>
        </a>
        <a href="enterprise.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-building text-xl primary-color mr-3"></i>
            <span>邦伴企业版</span>
          </div>
          <div class="flex items-center">
            <span class="text-xs primary-bg text-white px-1 rounded mr-2">新</span>
            <i class="fas fa-chevron-right text-gray-400"></i>
          </div>
        </a>
        <a href="notifications.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-bell text-xl primary-color mr-3"></i>
            <span>消息通知</span>
          </div>
          <i class="fas fa-chevron-right text-gray-400"></i>
        </a>
        <a href="feedback.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-comment-dots text-xl primary-color mr-3"></i>
            <span>意见反馈</span>
          </div>
          <i class="fas fa-chevron-right text-gray-400"></i>
        </a>
        <a href="about.html" class="menu-item flex justify-between items-center p-4">
          <div class="flex items-center">
            <i class="fas fa-info-circle text-xl primary-color mr-3"></i>
            <span>关于邦伴</span>
          </div>
          <i class="fas fa-chevron-right text-gray-400"></i>
        </a>
      </div>
    </div>
    
    <!-- 退出登录 -->
    <div class="px-4 py-5">
      <button id="logoutBtn" class="w-full py-3 border border-gray-200 rounded-lg text-gray-500">
        退出登录
      </button>
    </div>
    
    <!-- 底部空间 -->
    <div class="pb-20"></div>
    
    <!-- 底部导航栏 -->
    <div class="fixed bottom-0 left-0 right-0 z-10 bg-white bottom-nav" style="max-width: 480px; margin: 0 auto;">
      <div class="grid grid-cols-5 py-1">
        <a href="index.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-home text-lg"></i>
          <span class="text-xs mt-1">首页</span>
        </a>
        <a href="orders.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-clipboard-list text-lg"></i>
          <span class="text-xs mt-1">订单</span>
        </a>
        <a href="messages.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-comment-dots text-lg"></i>
          <span class="text-xs mt-1">消息</span>
        </a>
        <a href="member_points.html" class="flex flex-col items-center py-1 text-gray-500">
          <i class="fas fa-crown text-lg"></i>
          <span class="text-xs mt-1">会员</span>
        </a>
        <a href="profile.html" class="flex flex-col items-center py-1 tab-active">
          <i class="fas fa-user text-lg"></i>
          <span class="text-xs mt-1">我的</span>
        </a>
      </div>
    </div>
    
    <!-- 退出确认弹窗 -->
    <div id="logoutModal" class="fixed inset-0 bg-black bg-opacity-50 hidden flex items-center justify-center z-50" style="max-width: 480px; margin: 0 auto;">
      <div class="bg-white rounded-lg w-72 overflow-hidden">
        <div class="p-4 text-center">
          <h3 class="font-medium mb-2">确认退出</h3>
          <p class="text-sm text-gray-500">确定要退出登录吗？</p>
        </div>
        <div class="flex border-t border-gray-100">
          <button id="cancelLogout" class="flex-1 py-3 text-center text-gray-500">取消</button>
          <button id="confirmLogout" class="flex-1 py-3 text-center text-red-500">确定</button>
        </div>
      </div>
    </div>
  </div>
  
  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 底部导航激活状态切换
      const navItems = document.querySelectorAll('.bottom-nav a');
      navItems.forEach(item => {
        item.addEventListener('click', function() {
          navItems.forEach(i => i.classList.remove('tab-active'));
          navItems.forEach(i => i.classList.add('text-gray-500'));
          this.classList.add('tab-active');
          this.classList.remove('text-gray-500');
        });
      });
      
      // 退出登录功能
      const logoutBtn = document.getElementById('logoutBtn');
      const logoutModal = document.getElementById('logoutModal');
      const cancelLogout = document.getElementById('cancelLogout');
      const confirmLogout = document.getElementById('confirmLogout');
      
      logoutBtn.addEventListener('click', function() {
        logoutModal.classList.remove('hidden');
        logoutModal.classList.add('flex');
      });
      
      cancelLogout.addEventListener('click', function() {
        logoutModal.classList.add('hidden');
        logoutModal.classList.remove('flex');
      });
      
      confirmLogout.addEventListener('click', function() {
        // 这里可以添加退出登录的逻辑
        window.location.href = 'login.html';
      });
      
      // 点击弹窗外部关闭
      logoutModal.addEventListener('click', function(e) {
        if (e.target === logoutModal) {
          cancelLogout.click();
        }
      });
    });
  </script>
</body>
</html> 